package com.ruoyi.nmy.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import javax.validation.constraints.NotNull;


/**
 * 测试红冲列表对象 transaction
 * 
 * @author ruoyi
 * @date 2025-02-24
 */
public class Transaction extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 凭证字号 */
    @Excel(name = "凭证字号")

    private String bh;

    /** 科目名称 */
    @Excel(name = "科目名称")
    private String subject;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cTime;

    /** 借款金额 */
    @Excel(name = "借款金额")
    @NotNull(message = "借款金额不能为空")
    private BigDecimal jPrice;

    /** 贷款金额 */
    @Excel(name = "贷款金额")
    @NotNull(message = "贷款金额不能为空")
    private BigDecimal dPrice;





    @Excel(name = "状态")
    private Long status;
    public Long getStatus() {return status;}
    public void setStatus(Long status) {this.status = status;}

    public Long getShStatus() {
        return shStatus;
    }
    public void setShStatus(Long shStatus) {
        this.shStatus = shStatus;
    }
    private Long shStatus;







    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setBh(String bh) 
    {
        this.bh = bh;
    }

    public String getBh() 
    {
        return bh;
    }
    public void setSubject(String subject) 
    {
        this.subject = subject;
    }

    public String getSubject() 
    {
        return subject;
    }
    public void setcTime(Date cTime) 
    {
        this.cTime = cTime;
    }

    public Date getcTime() 
    {
        return cTime;
    }
    public void setjPrice(BigDecimal jPrice) 
    {
        this.jPrice = jPrice;
    }

    public BigDecimal getjPrice()
    {
        return jPrice;
    }
    public void setdPrice(BigDecimal dPrice) 
    {
        this.dPrice = dPrice;
    }

    public BigDecimal getdPrice() 
    {
        return dPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("bh", getBh())
            .append("subject", getSubject())
            .append("cTime", getcTime())
            .append("jPrice", getjPrice())
            .append("dPrice", getdPrice())
            .toString();
    }
}
